package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.Menu;
import com.ebring.shareEducation.bean.response.UserMenuRsp;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface MenuMapper extends Mapper<Menu> {

    // 查询用户所拥有菜单权限
	List<Menu> selectUMenu(String roleId);
    List<Menu> selectMenuByMenuId(String menuId);
    
    List selectOperationById(@Param("menuId") String menuId);

	Integer selectMaxByMenuId();

	Integer selectparentId(@Param("parentId") String parentId);

	Menu selectBymenuId(@Param("menuId") String menuId);

	//查询级别数量
	Integer selectGradeIdCount(String menuGrade);
	
	//查询父id的数量
	Integer selectparentIdCount(@Param("parentId") String parentId);
}
